# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=asteroid
pkgname=asteroid-settings
pkgver=2.0.0
pkgrel=0
pkgdesc="Default settings app for AsteroidOS"
url="https://github.com/AsteroidOS/asteroid-settings"
# armhf blocked by nemo-qml-plugin-systemsettings
arch="all !armhf"
license="GPL-3.0-or-later"
depends="
	mapplauncherd
	mce
	nemo-qml-plugin-configuration
	nemo-qml-plugin-systemsettings
	nemo-qml-plugin-time
	"
makedepends="
	dbus-dev
	dbus-glib-dev
	extra-cmake-modules
	mce-dev
	qml-asteroid-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtmultimedia-dev
	samurai
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/AsteroidOS/asteroid-settings/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
90ea5c3d13926b53d021d623b0816e65bdb4c18e8ab12c69dd502c5dfc113306bd2cab94e49e4d993d642e4c02e89878b5f02234cd5b616d595e6ab6aaeefa31  asteroid-settings-2.0.0.tar.gz
"
